{% extends "base_generic.html" %}
{% block content %}
        <h1>Projects</h1>
        <h2><a href="/admin/projects//new/" class="add">Add project</a></h2>
        <table class="imgswithoutborders">
        {% for project in projects %}
          <tr>
            <td>{% if project.lang %}<img src="/img/flags/{{ project.lang }}.gif" />{% endif %}</td>
            <td>{% if project.favicon %}<img src="{{ project.favicon }}" width="16" height="16" />{% endif %}</td>
            <td><a href="{{ project.url }}">{{ project.name }}</a></td>
            <td><a href="{{ project.directoryURL }}/{{ project.slug }}">Public</a></td>
            <td><a href="/admin/projects/{{ project.key }}/edit/">Editar</a></td>
            <td><a href="/admin/projects/{{ project.key }}/delete/" onclick="if(confirm('¿Do you really want to delete {{ project.title }}?')){return true;}else{return false;}">Borrar</a></td>
          </tr>
        {% endfor %}
        </table>

{% endblock %}
